/*********************************************************************************************
 *
 *							Function to conver string to int								 *
 *
 ********************************************************************************************/
#include "mystrings.h"
int myatoi (char *s){							/* procedure to convert ascii to integer */
	int  n ;									/* for storing the integer */
	int sign ;									/* store the sign */

	for ( ; *s == ' ' || *s == '\t'; s++)
		;
	sign = ( *s == '-') ? -1:1 ;				
	if (*s == '+' || *s == '-' )
		s++ ;
	for (n = 0; *s >= '0' && *s <= '9' ;s++){
			n = n*10 + (*s -'0');
	}

	return n *sign ;						 /* return with the sign */
}



